package test24;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-12-14
 * Time: 19:56
 */
public class Main {
    public static void main(String[] args) {
        List<Goods> books=new ArrayList<Goods>();
        books.add(new Book());
        books.add(new Book());

        List<Goods> clothes=new ArrayList<Goods>();
        clothes.add(new Clothes());
        clothes.add(new Clothes());

        List<Goods> shoes=new ArrayList<>();
        shoes.add(new Shoes());
        shoes.add(new Shoes());
        GoodsSeller goodsSeller=new GoodsSeller();
        goodsSeller.sellGoods(books);
        goodsSeller.sellGoods(clothes);
        goodsSeller.sellGoods(shoes);

    }
}
